package Music;

public class Violin {
    private String name;
    private String price;
    public Violin(String name,String price){
        this.name=name;
        this.price=price;
    }
    public void play(Man man){
        System.out.println(man.getName()+"使用"+name+"弹奏出了美妙的乐曲。");
    }
    public void check(Man man){
        System.out.println(man.getName()+"对"+name+"进行了校音。");
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPrice() {
        return price;
    }
}
